package com.szqhyxj.youxiangju.biz.plan;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class RowsItem implements Parcelable{

	@SerializedName("totalBillAmount")
	private double totalBillAmount;

	@SerializedName("currentBillAmount")
	private double currentBillAmount;

	@SerializedName("repaidAmount")
	private double repaidAmount;

	@SerializedName("progress")
	private int progress;

	@SerializedName("bankName")
	private String bankName;

	@SerializedName("planId")
	private String planId;

	@SerializedName("bankLogo")
	private String bankLogo;

	@SerializedName("status")
	private int status;

	protected RowsItem(Parcel in) {
		totalBillAmount = in.readDouble();
		currentBillAmount = in.readDouble();
		repaidAmount = in.readDouble();
		progress = in.readInt();
		bankName = in.readString();
		planId = in.readString();
		bankLogo = in.readString();
		status = in.readInt();
		failMsg = in.readString();
	}

	public static final Creator<RowsItem> CREATOR = new Creator<RowsItem>() {
		@Override
		public RowsItem createFromParcel(Parcel in) {
			return new RowsItem(in);
		}

		@Override
		public RowsItem[] newArray(int size) {
			return new RowsItem[size];
		}
	};

	public String getFailMsg() {
		return failMsg;
	}

	public void setFailMsg(String failMsg) {
		this.failMsg = failMsg;
	}

	@SerializedName("failMsg")
	private String failMsg;
	public double getTotalBillAmount(){
		return totalBillAmount;
	}

	public void setTotalBillAmount(double totalBillAmount){
		this.totalBillAmount = totalBillAmount;
	}

	public double getCurrentBillAmount(){
		return currentBillAmount;
	}

	public void setCurrentBillAmount(double currentBillAmount){
		this.currentBillAmount = currentBillAmount;
	}

	public double getRepaidAmount(){
		return repaidAmount;
	}

	public void setRepaidAmount(double repaidAmount){
		this.repaidAmount = repaidAmount;
	}

	public void setProgress(int progress){
		this.progress = progress;
	}

	public int getProgress(){
		return progress;
	}

	public void setBankName(String bankName){
		this.bankName = bankName;
	}

	public String getBankName(){
		return bankName;
	}

	public void setPlanId(String planId){
		this.planId = planId;
	}

	public String getPlanId(){
		return planId;
	}

	public void setBankLogo(String bankLogo){
		this.bankLogo = bankLogo;
	}

	public String getBankLogo(){
		return bankLogo;
	}

	public void setStatus(int status){
		this.status = status;
	}

	public int getStatus(){
		return status;
	}

	@Override
 	public String toString(){
		return 
			"RowsItem{" + 
			"totalBillAmount = '" + totalBillAmount + '\'' + 
			",currentBillAmount = '" + currentBillAmount + '\'' + 
			",progress = '" + progress + '\'' + 
			",bankName = '" + bankName + '\'' + 
			",planId = '" + planId + '\'' + 
			",bankLogo = '" + bankLogo + '\'' + 
			",status = '" + status + '\'' + 
			"}";
		}

	public RowsItem() {
	}


	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeDouble(totalBillAmount);
		dest.writeDouble(currentBillAmount);
		dest.writeDouble(repaidAmount);
		dest.writeInt(progress);
		dest.writeString(bankName);
		dest.writeString(planId);
		dest.writeString(bankLogo);
		dest.writeInt(status);
		dest.writeString(failMsg);
	}
}